package com.you.pattern.listener.demo1;

/**
 * 事件监听器
 */
public class CusEventListener {

    /**
     * 事件发生后的回调方法
     *
     * @param cusEvent 事件对象
     */
    public void fireCusEvent(CusEvent cusEvent) {
        EventSourceObject eObject = (EventSourceObject) cusEvent.getSource();
        System.out.println("My name has been changed!");
        System.out.println("I got a new name,named " + eObject.getName());
    }
}
